// Zipacz.h

#pragma once

using namespace System;
using namespace System::Runtime::InteropServices;

extern "C" __declspec(dllexport) char* getText();
extern "C" __declspec(dllexport) char* getSettings(char* _xml, bool* _zwroc);
extern "C" __declspec(dllexport) bool executeAction(char* _xml);


namespace Zipacz {

	public ref class Wskaznik
	{
	private:
		char* pointer;
	public:
		// TODO: Add your methods for this class here.

		Wskaznik()
		{
			pointer = nullptr;			
		}

		~Wskaznik()
		{						
			if (pointer!=nullptr)
				Marshal::FreeHGlobal(IntPtr(pointer));			
		}

		char* getPointer(String^ _tekst)
		{
			pointer = (char*)(void*)Marshal::StringToHGlobalAnsi(_tekst);
			return pointer;
		}	
	};

}
